@import "./base/variables.less";
@import "./mixins/vendor-prefixes.less";

.main-header{
  padding-right: 10px;
  background-color: @mainBg;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1600;
  transform: translate3d(0,0,0);
  .backface-visibility(hidden);
  .perspective(1000);
	.transition(transform .3s ease);
  &.to-top {
    transform: translate3d(0,-@headerH,0);
  }
}
.logo{
  width: @sidebarW;
  height: @headerH;
  display: flex;
  justify-content: center;
  align-items: center;
  // flex-direction: column;
  .logo-box {
    //width: 150px;
    //height: 50px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .logo-img{
    width: 100%;
    height: 30px;
    text-align: center;
    img{
      width:100px;
      margin-top: -5px;
    }
  }
  .title{
    flex: 1;
    align-self: center;
    padding-top: 2px;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: @lightGrey;
    text-align: center;
    letter-spacing: 0.4px;
  }
}
.navbar{
  flex: 1;
  height: @headerH;
  margin-right: 4px;
  position: relative;
  .more-menu-icon{
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url(../img/icon_extend.png) no-repeat left center;
  }
  .more-item{
    position: absolute;
    top: 0px;
    width: 50px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s linear;
    &:hover{
      background-color: darken(@mainBg, 10%);
    }
  }
  .prev-item{
    left: 0px;
    .more-menu-icon{
      background-position-x: right;
    }
  }
  .next-item{
    right: 0px;
  }
  .menu-box{
    position: absolute;
    top: 0px;
    left: 50px;
    right: 50px;
    overflow: hidden;
  }
  .menu-inner-box{
    display: flex;
    flex-flow: row nowrap;
    transform: translate3d(0,0,0);
    transition: all 0.2s linear;
    .menu-item{
      display: inline-block;
      min-width: @singleMenuW;
      height: @headerH;
      line-height: @headerH;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s linear;
      &:hover,&.active{
        box-shadow: inset 0px -5px 0px @green;
        // border-bottom: 5px solid @green;
      }
    }
  }
}
.btnbar{
  .btn-item{
    padding: 0px;
    position: relative;
    a{
      display: flex;
      align-items: center;
      height: @headerH;
      line-height: @headerH;
      padding-left: 10px;
      padding-right: 10px;
      cursor: pointer;
      .user-icon{
        background-position: -432px 0px;
      }
      .sign-out-icon{
        background-position: -456px 0px;
      }
      &:hover, &.active{
        background-color: darken(@mainBg, 10%);
      }
    }
  }
  .btnbar-icon{
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(../img/ake-icon.png) no-repeat center center;
  }
}
